-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(text-field): Move text-field outline colors to mixins #1963
feat(text-field): Move text-field outline colors to mixins #1963
Conversation
78173c6
to
0f61752
Compare
packages/mdc-textfield/README.md
Outdated
@@ -210,6 +210,11 @@ Mixin | Description | |||
`mdc-text-field-focused-bottom-line-color($color)` | Customizes the bottom-line ripple color when the text-field is focused. | |||
`mdc-text-field-ink-color($color)` | Customizes the text entered into the text-field. | |||
`mdc-text-field-label-color($color)` | Customizes the label color of the text-field. | |||
`mdc-text-field-outline-stroke-color($color)` | Customizes the color of the border of the outlined text-field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just mdc-text-field-outline-color
. Outline is already a stroke.
Here and the two below.
packages/mdc-textfield/_mixins.scss
Outdated
@@ -72,6 +74,12 @@ | |||
} | |||
} | |||
|
|||
@mixin mdc-text-field-input-hover-outline-stroke-color($color) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this took me a while to figure out....I think you should add a comment about why this is not the same as mdc-text-field-hover-outline-stroke-color
. Where does this get used?
@@ -151,7 +157,7 @@ | |||
z-index: 2; | |||
|
|||
&:hover ~ .mdc-text-field__idle-outline { | |||
border: 1px solid $mdc-text-field-outlined-hover-border; | |||
border: 1px solid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line necessary? Seems the same as line 136 above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 136 is for the input:hover
and this one is for icon:hover
.
They were both set to the same color, so I set them both using the mdc-text-field-hover-outline-color
.
81090af
to
3e8aac1
Compare
CLAs look good, thanks! |
3e8aac1
to
d67b586
Compare
d67b586
to
625a6fd
Compare
commit f399384 Author: Andrew C. Dvorak <[email protected]> Date: Tue Jan 16 20:09:43 2018 -0800 chore(demos): Add example themes & load theme from URL (#1967) To test, visit the following URL: http://localhost:8080/theme/index.html?theme=dark The `theme` param must be one of `baseline`, `black`, `dark`, `white`, or `yellow`. This only works on the theme demo page; all other demo pages are unaffected. commit 1dae53c Author: Will Ernest <[email protected]> Date: Tue Jan 16 19:14:54 2018 -0800 feat(text-field): Move text-field outline colors to mixins (#1963) * feat(text-field): Move color mixins for outline/helper text. Update demos/docs Breaking Change: Moves color customization of the outline text-field to SASS mixins.
Breaking Change: Moves color customization of the outline text-field to SASS mixins.
refs: #1526